package com.example.enterprisemanager.util;

import android.content.Context;
import android.support.design.widget.Snackbar;
import android.view.View;
import android.widget.Toast;

public class SnackUtil {
    private static Snackbar snackbar;

    public static void showSnackbar(View context, String str) {
        if (snackbar == null) {
            snackbar = Snackbar.make(context, str, Snackbar.LENGTH_SHORT);
        }
        snackbar.setText(str);
        snackbar.show();
    }
}
